<template>
  <div class="outer">
    <Gege title="新闻">
      <template #context>
        <img width="150" src="./assets/01.webp" alt="" />
      </template>

      <template #footer>
        <a>点击进入</a>
      </template>
    </Gege>
    <Gege title="游戏">
      <template #context>
        <ul>
          <li>LoL</li>
          <li>CF</li>
          <li>DNF</li>
          <li>CSgo</li>
        </ul>
      </template>
      <template #footer>
        <h2>推荐的游戏</h2>
      </template>
    </Gege>
    <Gege title="电影">
      <template #context>
        <img width="150" src="./assets/02.webp" alt="" />
      </template>

      <template #footer>
        <a>点击全屏观看</a>
      </template>
    </Gege>
  </div>
</template>

<script>
import Gege from "./component/Gege.vue";
export default {
  name: "App",
  components: {
    Gege,
  },
};
</script>

<style lang="css" scoped>
.outer {
  width: 700px;
  display: flex;
  justify-content: space-between;
}
</style>